package com.kpa.demo.ui.main.viewmodel

import com.kpa.demo.data.model.DataBean
import com.kpa.demo.data.model.Girls
import com.kpa.demo.data.model.Person
import com.kpa.demo.data.model.ResultBean
import com.kpa.demo.data.repository.MainRepository
import com.kpa.demo.ui.base.BaseViewModel

class GirlViewModel(private val mainRepository: MainRepository): BaseViewModel() {

    fun getGirls() = emit<Girls> {
        mainRepository.getGirls()
    }

    fun getPerson(person: Person) = emit<ResultBean<Person>> {
        mainRepository.getPerson(person)
    }

    fun getDataBean() = emit<DataBean> {
        mainRepository.getDataBean()
    }
}